package com.cmc.cloud.cmclink.doc.vo.voyagebsacbatemplatevo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 周贤
 * @date 2025/6/12
 */
@Schema(description = "管理后台 - 从历史数据复制 Request VO")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class VoyageCbaTemplateHistoryVO {

    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotBlank(message = "｛VoyageCbaTemplateHistoryVO.templateName.NotBlank｝")
    @Length(max = 50, message = "｛VoyageCbaTemplateHistoryVO.templateName.Length｝")
    private String templateName;

    @Schema(description = "港口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "｛VoyageCbaTemplateHistoryVO.portCode.NotBlank｝")
    @Length(max = 5, message = "｛VoyageCbaTemplateHistoryVO.portCode.Length｝")
    private String portCode;

    @Schema(description = "模板备注", example = "你猜")
    @Length(max = 200, message = "｛VoyageCbaTemplateHistoryVO.templateRemark.Length｝")
    private String templateRemark;

    @Schema(description = "源模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotBlank(message = "｛VoyageCbaTemplateHistoryVO.originalTemplateName.NotBlank｝")
    @Length(max = 50, message = "｛VoyageCbaTemplateHistoryVO.originalTemplateName.Length｝")
    private String originalTemplateName;

    @Schema(description = "源港口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "｛VoyageCbaTemplateHistoryVO.originalPortCode.NotBlank｝")
    @Length(max = 5, message = "｛VoyageCbaTemplateHistoryVO.originalPortCode.Length｝")
    private String originalPortCode;

    @Schema(description = "源模板备注", example = "你猜")
    @Length(max = 200, message = "｛VoyageCbaTemplateHistoryVO.originalTemplateRemark.Length｝")
    private String originalTemplateRemark;
}
